package com.sunlee.common.service.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sunlee.common.service.entity.UserActionEntity;
import com.sunlee.common.service.po.ProductActionPO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户行为表
 *
 * @author sunlee
 */
public interface UserActionDao extends BaseMapper<UserActionEntity> {

    int countUserRecordById(@Param("uId") Long uId, @Param("pId") Long pId, @Param("actionType") int actionType);

    UserActionEntity getUserRecord(@Param("uId") Long uId, @Param("pId") Long pId, @Param("actionType") int actionType);

    List<ProductActionPO> countByProductId(@Param("pIds") List<Long> pIds);
}




